package org.jeecg.modules.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.models.auth.In;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.entity.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: db_project
 * @Author: jeecg-boot
 * @Date:   2024-06-26
 * @Version: V1.0
 */
@Data
@TableName("db_project")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="db_project对象", description="db_project")
public class DbProject extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**项目编号*/
	@Excel(name = "项目编号", width = 15)
    @ApiModelProperty(value = "项目编号")
    private String code;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String name;
	/**分类*/
	@Excel(name = "分类",dicCode = "type", width = 15)
    @ApiModelProperty(value = "分类")
    @Dict(dicCode = "type")
    private Integer type;
	/**合同编号*/
	@Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private String contractId;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String cusName;
	/**开始日期*/
	@Excel(name = "开始日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始日期")
    private Date startTime;
	/**项目经理*/
	@Excel(name = "项目经理", dicCode = "pro_manager",width = 15)
    @ApiModelProperty(value = "项目经理")
    @Dict(dicCode = "pro_manager")
    private Integer manager;
	/**预算人天*/
	@Excel(name = "预算人天", width = 15)
    @ApiModelProperty(value = "预算人天")
    private Integer estimatedManDays;
	/**预算金额*/
	@Excel(name = "预算金额", width = 15)
    @ApiModelProperty(value = "预算金额")
    private BigDecimal estimatedPrice;
	/**项目概述*/
	@Excel(name = "项目概述", width = 15)
    @ApiModelProperty(value = "项目概述")
    private String overview;
	/**附件id*/
	@Excel(name = "附件id", width = 15)
    @ApiModelProperty(value = "附件id")
    private String fileGroupId;

    @TableField(exist = false)
    @ApiModelProperty(value = "文件ids")
    private List<String> fileIds;

}
